package org.skyfree.ghyll.tcard.repository;

import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorSite;
import org.eclipse.ui.PartInitException;
import org.skyfree.ghyll.tcard.core.ITWorkpiece;
import org.skyfree.ghyll.ui.part.SelectionMultiplePageEditor;

public class WorkpieceMutiEditor extends SelectionMultiplePageEditor {

	public WorkpieceMutiEditor()
	{
		System.out.println("here");
	}
	
	@Override
	public String getCategroryID() 
	{
		return "org.skyfree.ghyll.tcard.workpiece";
	}

	@Override
	public void doSave(IProgressMonitor monitor) {
		// TODO Auto-generated method stub

	}

	@Override
	public void doSaveAs() {
		// TODO Auto-generated method stub

	}

	@Override
	public boolean isSaveAsAllowed() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void init(IEditorSite site, IEditorInput input)
			throws PartInitException {
		// TODO Auto-generated method stub
		super.init(site, input);
		if (input.getAdapter(ITWorkpiece.class) != null) {
			ITWorkpiece wp = (ITWorkpiece) input.getAdapter(ITWorkpiece.class);
			this.setPartName(wp.getName());
		}
	}

	
}
